package com.zyong.design.pattern.responsibility.case3;

import org.springframework.stereotype.Component;
import java.lang.annotation.*;

/**
 * @program: zyong-design-pattern
 * @ClassName: Duty
 * @author: zyong
 * @create: 2024-04-13 13:24
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Component
public @interface Duty {
    /**
     * 标记具体业务场景
     * @return
     */
    String type() default "";

    /**
     * 排序：数值越小，排序越前
     * @return
     */
    int order() default 0;
}
